import request from '@/utils/request'

export function update(data){
	return request({
		url: '/wiki/update',
		method: 'post',
		data
	})
}

export function del(data){
	return request({
		url: '/wiki/delete',
		method: 'post',
		data
	})
}

export function search(formline,pageSize,currentPage){
	return request({
		url: '/wiki/search',
		method:'post',
		params: {
			appid: formline.appid,
			apptype: formline.apptype,
			related: formline.related
		},
		data:{
			condiction: formline,
			size: pageSize,
			page: currentPage
		},
		
	})
}

export function related(data,appid,apptype){
	return request({
		url: '/wiki/related',
		method:'post',
		params: {
			appid: appid,
			apptype: apptype,
		},
		data
		
	})
}

export function unrelated(data,appid,apptype){
	return request({
		url: '/wiki/unrelated',
		method:'post',
		params: {
			appid: appid,
			apptype: apptype
		},
		data
	})
}